Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disallow arbitrary sending of 0 amount in LSP7 #976

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Conversation

YamenMerhi
Copy link
Member

@YamenMerhi YamenMerhi commented Sep 26, 2024

What does this PR introduce?

🐛 Bug

  • disallow arbitrary sending of 0 amount in LSP7
    New behavior: token owners and operators are allowed to send 0 as amount. Non operator or non token owner cannot send 0 as amount.

Comment on lines +2242 to +2243
});
describe('when the caller have an authorized amount', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫣

Suggested change
});
describe('when the caller have an authorized amount', () => {
});
describe('when the caller have an authorized amount', () => {

@CJ42 CJ42 merged commit 50f0a07 into develop Sep 27, 2024
2 of 3 checks passed
@CJ42 CJ42 deleted the patch-allowance branch September 27, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants